<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use common\models\kaoguobao\Order;

/* @var $this yii\web\View */
/* @var $model common\models\AccountWechat */

$this->title = '订单号：'.$model->order_num;
$this->params['breadcrumbs'][] = ['label' => 'Account Wechats', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="account-wechat-view">

    <h1><?= Html::encode($this->title) ?></h1>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'order_num',
            [
                'attribute' => 'order_status',
                'value' => Order::$orderStatus[$model->order_status],
            ],
            'user_id',
            'benefit_id',
            [
                'attribute' => 'amount',
                'value' => number_format($model->amount/100,2),
            ],
            'key',
            [
                'attribute' => 'type',
                'value' => Order::$typeName[$model->type],
            ],
            'remarks',
            'start_time:date',
            'end_time:date',
            'created_at:date',
        ],
    ]) ?>

</div>
